<div class="uk-layui-form">
	<form class="layui-form uk-form" action="/apps/xiaoe/words/type/update.html">
		<input type="hidden" name="id" value="${wordsType.id!''}">
		<div class="layui-form-item">
			<label class="layui-form-label">分类名称：</label>
			<div class="layui-input-inline">
				<input type="text" name="name" required lay-verify="required" value="${wordsType.name!''}"
					placeholder="请输入分类名称" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
		    <label class="layui-form-label">词库类型：</label>
		    <div class="layui-inline">
				<input type="radio" name="code" value="default" title="普通词库" <#if (wordsType??) || wordsType.code != 'ambiguity'>checked="checked"</#if>>
				<input type="radio" name="code" value="ambiguity" title="歧义词库" <#if wordsType?? && wordsType.code == 'ambiguity'>checked="checked"</#if>>
				<input type="radio" name="code" value="topic" title="主题词库" <#if wordsType?? && wordsType.code == 'topic'>checked="checked"</#if>>
			</div>
			<div class="layui-inline">
				<input type="radio" name="code" value="taboo" title="禁忌词" <#if (wordsType??) && wordsType.code == 'taboo'>checked="checked"</#if>>
			</div>
		</div>
		<div class="layui-form-button">
			<div class="layui-button-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</div>
 
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  form.render(); //更新全部
});
</script>